package example.chapter12.doubleselect;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class DoubleselectTagAction extends ActionSupport{
	private List<String> checkedList1;
	private List<String> checkedList2;
	private List<String> checkedList3;
	private List<String> checkedList4;
	
	private List<String> listFruits;
	private List<String> listCars;
	private List<String> listOthers;
	
	public String execute() throws Exception{
		listFruits = new ArrayList<String>();
		listFruits.add("grape");
		listFruits.add("orange");
		listFruits.add("apple");
		
		listCars = new ArrayList<String>();
		listCars.add("Audi");
		listCars.add("Porche");
		listCars.add("BMW");
		
		listOthers = new ArrayList<String>();
		listOthers.add("PMP");
		listOthers.add("MP3");
		listOthers.add("PC");
		
		return SUCCESS;
	}

	public List<String> getCheckedList1() {
		return checkedList1;
	}

	public void setCheckedList1(List<String> checkedList1) {
		this.checkedList1 = checkedList1;
	}

	public List<String> getCheckedList2() {
		return checkedList2;
	}

	public void setCheckedList2(List<String> checkedList2) {
		this.checkedList2 = checkedList2;
	}

	public List<String> getCheckedList3() {
		return checkedList3;
	}

	public void setCheckedList3(List<String> checkedList3) {
		this.checkedList3 = checkedList3;
	}

	public List<String> getCheckedList4() {
		return checkedList4;
	}

	public void setCheckedList4(List<String> checkedList4) {
		this.checkedList4 = checkedList4;
	}

	public List<String> getListFruits() {
		return listFruits;
	}

	public void setListFruits(List<String> listFruits) {
		this.listFruits = listFruits;
	}

	public List<String> getListCars() {
		return listCars;
	}

	public void setListCars(List<String> listCars) {
		this.listCars = listCars;
	}

	public List<String> getListOthers() {
		return listOthers;
	}

	public void setListOthers(List<String> listOthers) {
		this.listOthers = listOthers;
	}
	
}
